import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';

class RolePermissionEntity with JsonConvert<RolePermissionEntity> {
  int id;
  @JSONField(name: "company_id")
  int companyId;
  @JSONField(name: "can_edit")
  int canEdit;
  String name;
  @JSONField(name: "all_permissions")
  List<PermissionEntity> allPermissions;
}

class PermissionEntity with JsonConvert<PermissionEntity> {
  int id;
  @JSONField(name: "company_id")
  int companyId;
  String name;
  String key;
  int checked;
}
